﻿@model RIS.TMP.WEB.APP.Models.UserLogin

@{
    ViewBag.Title = "Create";
}

@section Settings{
<h2 class="sub-header">เพิ่มการลงทะเบียน</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <hr>

        <div class="editor-label">
            @Html.LabelFor(model => model.User)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.User)
            @Html.ValidationMessageFor(model => model.User)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmId, "ผู้ใช้งาน")
        </div>
        <div class="editor-field">
            @Html.DropDownList("EmId", "เลือกผู้ใช้งาน")
            @Html.ValidationMessageFor(model => model.EmId)
        </div>
        <hr>
        <p>
            <input type="submit" class="btn btn-primary" value="บันทึก" />
            @Html.ActionLink("กลับไปยังรายการ", "Index", new object { }, new { @class = "btn btn-primary" })
        </p>
    </fieldset>
}

}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript">
        $(".AF").show();
    </script>

}
